package com.lyw.service;

import com.lyw.dao.PlacesDao;
import com.lyw.pojo.Places;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlacesService {
    @Autowired
    private PlacesDao placesDao;


    public List<Places> findPlaces() {
        return placesDao.findAll();
    }
}
